<%@page pageEncoding="utf-8" contentType="text/html; charset=utf-8" %>
<%@ include file="/home/include/init_home.jsp" %>
<%@ page import="com.welfare.admin.system.*" %>
<%
	
	String popup_id		= StringUtil.nvl(request.getParameter("popup_id"));



	HashMap infos = new HashMap();
	infos.put("popup_id",	popup_id);

   
	SystemDAO dao 		= new SystemDAO();
	HashList info 		= dao.selectPopupInfo(infos);		

	

%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
	<title><%= info.get("popup_name", 0) %></title>
	<%@ include file="/home/include/cssnjs.jsp"  %>

	<script type="text/javascript">
	function setCookie( name, value, expiredays )
    {
	    var todayDate = new Date();
	    todayDate.setDate( todayDate.getDate() + expiredays );
	    document.cookie = name + "=" + escape( value ) + "; path=/; expires=" + todayDate.toGMTString() + ";"
    }

    function closeWin() {
    	if (frm.chk.checked) {
        	setCookie( "event<%=popup_id%>", "done" , 1,"/");
    	}
    	self.close();
    }

	</script>
</head>
<body id="popup">
	<%= info.get("content_info",0) %>
	<div id="popup_footer">
	<form name="frm">
		<input type="checkbox" name="chk"/>
		<a href="#nohref" onclick="javascript:closeWin();"> 오늘 하루 안보기</a>
	</form>
	</div>
</body>
</html>
